import request from '@/utils/request'

// 查询订单状态跟踪列表
export function listTrace(query) {
  return request({
    url: '/system/trace/list',
    method: 'get',
    params: query
  })
}

// 查询订单状态跟踪详细
export function getTrace(orderId) {
  return request({
    url: '/system/trace/' + orderId,
    method: 'get'
  })
}

// 新增订单状态跟踪
export function addTrace(data) {
  return request({
    url: '/system/trace',
    method: 'post',
    data: data
  })
}

// 修改订单状态跟踪
export function updateTrace(data) {
  return request({
    url: '/system/trace',
    method: 'put',
    data: data
  })
}

// 删除订单状态跟踪
export function delTrace(orderId) {
  return request({
    url: '/system/trace/' + orderId,
    method: 'delete'
  })
}
